import React from 'react'
// ===================================================================== Declare
const { $fn, $Lazy } = window
// ===================================================================== Lazy
const Menu = $Lazy.load(()=>import('#frame/menu'))
// ===================================================================== 标本管理
class Index extends React.Component{
	state = {
		data:[]
	}
	
	skip = { to: 'specimen-manage/info-entry/code-generate' }
	
	child = [
		{
			id: 'bbxxlr', 
			parent: '/specimen-manage/info-entry/project-list',
			children: [
				{ title: '录入项目', 	path: 'project-enter' },
				{ title: '批量加做', 	path: 'project-additional' },
				{ title: '双录入', 		path: 'double-entry' },
				{ title: '双录入纠错', 	path: 'items-error-recovery' }
			]
		},
		{
			id: 'bbxxlr', 
			parent: '/specimen-manage/info-entry/code-generate',
			children: [
				{ title: '大批量条码生成', 	path: 'morecode-generate' },
				{ title: '自定义条码生成', 	path: 'customcode-generate' }
			]
		},
		{
			id: 'bbxxlr', 
			parent: '/specimen-manage/info-entry/basicInfo-entry',
			children: [
				{ title: '快捷录入', 	path: 'fast-entry' },
				{ title: '双录入', 		path: 'double-entry' },
				{ title: '双录入纠错', 		path: 'error-correction' }
			]
		},
		{
			id: 'jsyff', 
			parent: '/specimen-manage/receive-dispense/specimen-receive',
			children: [
				{ title: '快捷领取', 	path: 'quick-receive' }
			]
		},
		{
			id: 'ckgl',
			parent: '/specimen-manage/warehouse-manage/warehouse-list',
			children: [
				{ title: '容器', path: 'container-modal',}
			]
		}
	]
	
	componentDidMount(){
		$fn.getMenu.call(this, 'bbgl', this.child)
	}
	
	render(){
		return <Menu data={this.state.data} skip={ this.skip } />
	}
}

export default Index